package com.guli.product.controller;

import jdk.nashorn.internal.ir.annotations.Reference;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ProductController
 * @Description TODO
 * @Author 李奉武
 * @Motto 逆水行舟, 不进则退
 * @Date 2021/12/8 10:47
 * @Version 1.0
 */
@RestController
@RequestMapping("/pro")
@RefreshScope
public class ProductController {

    @Value("${product.name}")
    private String name;
    @Value("${product.age}")
    private String age;

    @GetMapping
    public String getMsg(){
        return name+":"+age;
    }

}
